/*
 * @Author: lizilong 94648929@qq.com
 * @Date: 2022-11-14 20:12:41
 * @LastEditors: lizilong 94648929@qq.com
 * @LastEditTime: 2022-12-22 00:31:58
 * @FilePath: \sofast-admin\src\router\routes.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import LContainer from "@/layout/LContainer.vue";
import LMain from "@/layout/LMain.vue";

// 基础页
const AccountView = () => import("@/views/account/AccountView.vue");
const LoginView = () => import("@/views/account/LoginView.vue");
const RegisterView = () => import("@/views/account/RegisterView.vue");
const ForgetView = () => import("@/views/account/ForgetView.vue");
const LockView = () => import("@/views/account/LockView.vue");

// error
const Error403 = () => import("@/views/error/ErrorPage403.vue");
const Error404 = () => import("@/views/error/ErrorPage404.vue");
const Error500 = () => import("@/views/error/ErrorPage500.vue");
const ErrorBlank = () => import("@/views/error/ErrorBlank.vue");
const ErrorDeveloping = () => import("@/views/error/ErrorDeveloping.vue");

const HomeView = () => import("@/views/HomeView.vue");
const SearchView = () => import("@/views/SearchView.vue");
const AboutView = () => import("@/views/AboutView.vue");
const AboutDeatilView = () => import("@/views/AboutDeatilView.vue");
const VideoView = () => import("@/views/VideoView.vue");

const defaultRoutes = new Map();

// 容器
defaultRoutes.set("LContainer", LContainer); // 账户
defaultRoutes.set("LMain", LMain); // 账户

// 账户
defaultRoutes.set("AccountView", AccountView); // 账户
defaultRoutes.set("LoginView", LoginView); // 登录
defaultRoutes.set("RegisterView", RegisterView); // 注册
defaultRoutes.set("ForgetView", ForgetView); // 忘记密码
defaultRoutes.set("LockView", LockView); // 锁屏

// 错误页
defaultRoutes.set("ErrorIndex", LContainer); // 后台管理
defaultRoutes.set("ErrorBlank", ErrorBlank); // 空白页
defaultRoutes.set("Error403", Error403); // 空白页
defaultRoutes.set("Error404", Error404); // 空白页
defaultRoutes.set("Error500", Error500); // 空白页
defaultRoutes.set("ErrorDeveloping", ErrorDeveloping); // 空白页

defaultRoutes.set("HomeView", HomeView); // 空白页
defaultRoutes.set("SearchView", SearchView); // 空白页
defaultRoutes.set("AboutView", AboutView); // 空白页
defaultRoutes.set("AboutDeatilView", AboutDeatilView); // 空白页
defaultRoutes.set("VideoView", VideoView); // 空白页

export { defaultRoutes };
